<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
	<title></title>
    <link rel="stylesheet" type="text/css" href="<%=basePath %>pages/manage/css/bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>pages/manage/css/bootstrap-responsive.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>pages/manage/css/style.css" />
	<script type="text/javascript" src="<%=basePath %>pages/manage/js/jquery-1.7.2.min.js"></script> 
	
	<link rel="stylesheet" href="<%=basePath %>pages/manage/css/zTreeStyle.css">
	<script type="text/javascript" src="<%=basePath %>pages/manage/js/jquery.ztree.all.js"></script>
    <script type="text/javascript" src="<%=basePath %>pages/manage/js/news.js"></script>
    <style type="text/css">
        body {font-size: 13px;
            padding-bottom: 40px;
            background-color:#e9e7ef;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
		.menuContent{
			background-color: #ccc;
			width:210px;
		}

    </style>
    <script type="text/javascript">
    	$(function(){
    		//修改
    		var id = "${param.id}";
    		var url = "payOut/showUpdate?payoutId="+id;
			$.post(url,null,function(d){
				$("#payoutName").val(d.payoutName);
				$("#payoutMoney").val(d.payoutMoney);
			});
    		
        });
    </script>
   
   
</head>
<body>
	<form action="payOut/addOrUpdate" method="post" class="definewidth m20">
		<input type="hidden" name="payoutId" id="payoutId" value="${param.id}">
		<input type="hidden" name="usName" id="usName" value="${name}"/>
		<table class="table table-bordered table-hover m10" style="margin-left:10px;margin-top:3px;">
		    <tr>
		        <td width="10%" class="tableleft">名称</td>
		        <td><input type="text" id="payoutName" name="payoutName"/><span id="two" style="color:red;"></span></td>
		    </tr>
		    
		    <tr>
		        <td class="tableleft">支出金额</td>
		        <td><input type="text" id="payoutMoney" name="payoutMoney"/><span id="" style="color:red;"></span></td>
		    </tr>
		    
		    <tr>
		        <td class="tableleft"></td>
		        <td>
		            <button style="margin-left:5px;" type="submit" class="btn btn-primary"   >保存</button> &nbsp;&nbsp;<a href="news/showNewsList.do" class="btn btn-success" >返回列表</a>
		        </td>
		    </tr>
		</table>
	</form>

</body>
</html>

